package com.qdy.repository;

import com.qdy.entity.exercise.ExerciseMember;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by qudingyi on 2017/4/22.
 */
public interface ExerciseMemberRepository extends JpaRepository<ExerciseMember,Long> {
    List<ExerciseMember> findByExerciseIdAndStateOrderByCreateTimeDesc(Long exerciseId,int state);
}
